package com.beidu.lottery.call.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 活动奖品卡密表
 * </p>
 *
 * @author 北渡
 * @since 2024-08-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("b_activity_prize_redeem_code")
@ApiModel(value="ActivityPrizeRedeemCode对象", description="活动奖品卡密表")
public class ActivityPrizeRedeemCode implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "对应奖品id")
    private Integer prizeId;

    @ApiModelProperty(value = "上传批次号")
    private Integer batchNum;

    @ApiModelProperty(value = "卡密/兑换码")
    private String code;

    @ApiModelProperty(value = "活动id")
    private Integer activityId;

    @ApiModelProperty(value = "卡密/兑换码所属用户id")
    private String userId;

    @ApiModelProperty(value = "数据是否生效(0:未生效、1:生效)")
    private Integer type;

    @ApiModelProperty(value = "卡密使用状态(0:未使用、1:已使用)")
    private Integer useStatus;

    @ApiModelProperty(value = "数据状态(0:删除, 1:正常)")
    @TableLogic
    private Integer status;

    @ApiModelProperty(value = "创建人id")
    private String createdBy;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "更新人id")
    private String updatedBy;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedDate;


}
